package com.foryou.wechat.controller;

import com.foryou.wechat.service.WXHandlerService;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/v/wx")
public class WXController {

    private final WXHandlerService wxHandlerService;

    public WXController(WXHandlerService wxHandlerService) {
        this.wxHandlerService = wxHandlerService;
    }

    @PostMapping("/pushUserShootHandler/{businessId}")
    public void pushUserShootHandler(@PathVariable("businessId") Long businessId) {
        wxHandlerService.pushUserShootHandler(businessId);
    }

    @PostMapping("/pushUserPlaceHandler/{businessId}")
    public void pushUserPlaceHandler(@PathVariable("businessId") Long businessId) {
        wxHandlerService.pushUserPlaceHandler(businessId);
    }

    @PostMapping("/pushUserWorksHandler/{businessId}")
    public void pushUserWorksHandler(@PathVariable("businessId") Long businessId) {
        wxHandlerService.pushUserWorksHandler(businessId);
    }
}
